package com.baitiaojun.user.service;

import com.baitiaojun.api.domain.user.FollowingGroup;
import com.baitiaojun.api.domain.user.UserFollowing;
import com.baitiaojun.api.exception.ConditionException;

import java.util.List;
import java.util.Set;

/**
 * @类名 FollowingGroupService
 * @作者 白条君
 * @创建日期 2022/10/30 01:51
 * @版本 1.0
 */
public interface FollowingGroupService {

    Integer getFollowingGroupIsExistsById(Long id);

    List<FollowingGroup> getFollowingGroupListByGroupIds(Set<Long> followingGroupIds);

    Object getFollowingGroupByUserId(Long userid, String token) throws ConditionException;

    List<FollowingGroup> getFollowingGroupByUserId(Long userid);

    void cancelFollowingGroup(Long id, Long userId, String token)  throws Exception;

    Long addFollowingGroup(String groupName, Long userId, String token, UserFollowing userFollowing)  throws Exception;
}
